package com.shopmall.goods.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shopmall.goods.entity.GoodsRule;

import java.util.List;


public interface IGoodsRuleService {
    /**
     * 分页查询
     * @param goodsRule
     * @return
     */
    IPage<GoodsRule> pageList(GoodsRule goodsRule);

    /**
     * 添加
     * @param goodsRule
     * @return
     */
    int addOrUpdate(GoodsRule goodsRule);

    /**
     * 删除
     * @param id
     * @return
     */
     int deleteById(Integer id);

    List<GoodsRule> ruleList();
}
